<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<style type="text/css">
html,body{ height: 100%; width: 100%; position: relative; font-size:14px;}
.city{ margin:20px 200px; }
.selectbox{ height:50px; width:500px;}
.selectbox select{ height:30px; width:120px; margin-right:10px; line-height:30px;}
</style>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>


    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
				<div class="row col-xs-12"> 
				   		<div class="form-group">
							  <form class="form-inline" action="{:U('orderadd',array('id'=>$currentuser['id']))}" style=" padding: 0px 5px; float:left" method="get">
                                
								<input type="text" class="col-sm-6 inline" name="shkey" value="{$sh}" class="form-control">
                                <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                                    搜索
                                </button>
                               </form>
							</div>
				</div>
                <div class="row">
                    <div class="col-xs-12">
                        
						<!-- PAGE CONTENT BEGINS -->
						
                        <form class="form-horizontal" action="{:U('orderadddo',array('id'=>$currentuser['id']))}" name="xxmyfromSubmit" method="post">
                         
                            <div class="space-4"></div>
                            <div class="form-group">
								<div class="col-sm-1 inline blue">
                                        合作伙伴:
                                </div>
                                <div class="col-sm-9 inline">
                                        {$currentuser.outname} <a href="{:U('user',array('id'=>$currentuser['id']))}">详情</a>
                                </div>
                            </div>

							<div class="form-group">
                              <volist name="orders" id="val">
                                  <div class="col-sm-3"> <input class="ids inline" type="checkbox" name="orderid[]" value="{$val['ref']}"> {$val['ref']} &nbsp;{$val['buyer_name']}</div>
                              </volist>
				             
						 
                       <div class="space-4"></div>
					   <div class="space-4"></div>
                            <input name="id" value="{$currentmenu.id}" type="hidden">
                            <input name="user_id" value="{$currentuser.id}" type="hidden">
                            <input name="bind_id" value="{$bind_id}" type="hidden">
                            <div class="space-4"></div>
                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    绑定订单
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
						
						{$page}
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->

<script type="text/javascript">
    jQuery(function ($) {
      $('#exp_time').datepicker({
       
            dateFormat: 'yy-mm-dd',
              weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
     
            language: 'cn'
        });
    })
</script>

</body>
</html>
